package com.clzw.module_activity.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.clzw.module_activity.R
import com.clzw.module_activity.databinding.ItemEnlistsBinding
import com.clzw.module_activity.fragment.EnlistsListFragment
import com.czl.base.data.bean.ActivityPersonListBean

class EnlistsAdapter(private val fragment: EnlistsListFragment) :
    BaseQuickAdapter<ActivityPersonListBean.ActivityPersonListBeanItem, BaseDataBindingHolder<ItemEnlistsBinding>>(
        R.layout.item_enlists
    ) {
    override fun convert(
        holder: BaseDataBindingHolder<ItemEnlistsBinding>,
        item: ActivityPersonListBean.ActivityPersonListBeanItem
    ) {
        holder.dataBinding?.apply {
            data = item
            adapter = this@EnlistsAdapter
            executePendingBindings()
        }
    }
}